package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServicePayroadMapper;
import com.ruoyi.service.domain.ServicePayroad;
import com.ruoyi.service.service.IServicePayroadService;

/**
 * 车程费信息表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-12-02
 */
@Service
public class ServicePayroadServiceImpl implements IServicePayroadService 
{
    @Autowired
    private ServicePayroadMapper servicePayroadMapper;

    /**
     * 查询车程费信息表
     * 
     * @param payroadId 车程费信息表主键
     * @return 车程费信息表
     */
    @Override
    public ServicePayroad selectServicePayroadByPayroadId(Long payroadId)
    {
        return servicePayroadMapper.selectServicePayroadByPayroadId(payroadId);
    }

    /**
     * 查询车程费信息表列表
     * 
     * @param servicePayroad 车程费信息表
     * @return 车程费信息表
     */
    @Override
    public List<ServicePayroad> selectServicePayroadList(ServicePayroad servicePayroad)
    {
        return servicePayroadMapper.selectServicePayroadList(servicePayroad);
    }

    /**
     * 新增车程费信息表
     * 
     * @param servicePayroad 车程费信息表
     * @return 结果
     */
    @Override
    public int insertServicePayroad(ServicePayroad servicePayroad)
    {
        return servicePayroadMapper.insertServicePayroad(servicePayroad);
    }

    /**
     * 修改车程费信息表
     * 
     * @param servicePayroad 车程费信息表
     * @return 结果
     */
    @Override
    public int updateServicePayroad(ServicePayroad servicePayroad)
    {
        return servicePayroadMapper.updateServicePayroad(servicePayroad);
    }

    /**
     * 批量删除车程费信息表
     * 
     * @param payroadIds 需要删除的车程费信息表主键
     * @return 结果
     */
    @Override
    public int deleteServicePayroadByPayroadIds(Long[] payroadIds)
    {
        return servicePayroadMapper.deleteServicePayroadByPayroadIds(payroadIds);
    }

    /**
     * 删除车程费信息表信息
     * 
     * @param payroadId 车程费信息表主键
     * @return 结果
     */
    @Override
    public int deleteServicePayroadByPayroadId(Long payroadId)
    {
        return servicePayroadMapper.deleteServicePayroadByPayroadId(payroadId);
    }
}
